package cn.com.dcsgo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 添加会员收货地址请求参数
 *
 * @author Dcsgo
 * @since 2025/10/31 18:38
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "添加会员收货地址请求参数")
public class MemberAddrAddDTO {
    /**
     * 收货人
     */
    @NotBlank(message = "收货人不能为空或空白字符串")
    @Schema(description = "收货人")
    private String receiver;

    /**
     * 省ID
     */
    @NotNull(message = "省不能为空")
    @Schema(description = "省ID")
    private Long provinceId;

    /**
     * 省
     */
    @NotBlank(message = "省不能为空或空白字符串")
    @Schema(description = "省")
    private String province;

    /**
     * 城市
     */
    @NotBlank(message = "城市不能为空或空白字符串")
    @Schema(description = "城市")
    private String city;

    /**
     * 城市ID
     */
    @NotNull(message = "城市不能为空")
    @Schema(description = "城市ID")
    private Long cityId;

    /**
     * 区
     */
    @NotBlank(message = "区不能为空或空白字符串")
    @Schema(description = "区")
    private String area;

    /**
     * 区ID
     */
    @NotNull(message = "区不能为空")
    @Schema(description = "区ID")
    private Long areaId;

    /**
     * 详细地址
     */
    @NotBlank(message = "详细地址不能为空或空白字符串")
    @Schema(description = "详细地址")
    private String addr;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空或空白字符串")
    @Schema(description = "手机号")
    private String mobile;
}
